package com.swan.views;

import java.io.IOException;

import com.swan.App;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

/**
 * ClassMgtApplication
 * @author xyh
 * @param <T>
 * @date 20230426
 *
 */
public class ClassMgtApplication extends Application{
	
	public void showStage() throws IOException {
		Pane root = FXMLLoader.load(App.class.getResource("ClassMgt.fxml"));
		Scene scene = new Scene(root);
		Stage stage = new Stage();
		// set title
		stage.setTitle("Class Management System");
		stage.setScene(scene);
		stage.show();
	}

	@Override
	public void start(Stage arg0) throws Exception {
		showStage();
		
	}
	
	 public static void main(String[] args) {
	        launch(args);
	    }

	
}
